import App from './App'
import '@/common/http.js'
import '@/static/font/iconfont.css'
import request from './common/request'
import tabbar from './components/tabbar.vue';
import headerCommon from '@/components/public/header-common.vue';
import listVue from '@/components/list.vue';
import commonSearchVue from '@/components/public/common-search.vue';

 

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App);
  // 全局注入
  app.config.globalProperties.$request = request;
  // 引入组件
  app.component('headerCommon', headerCommon);
  app.component('myList', listVue);
  app.component('commonSearch', commonSearchVue);
  app.component('tabbar', tabbar);
  
  return {
    app
  }
}
// #endif



// #ifndef VUE3
import Vue from 'vue'
import './uni.promisify.adaptor'
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
  ...App
})
app.$mount()
// #endif


